home *** CD-ROM | disk | FTP | other *** search
/ Aminet 44 / Aminet 44 (2001)(GTI - Schatztruhe)[!][Aug 2001].iso / Aminet / dev / src / ChunkyStartup2.lha / ChunkyStartup2K1 / cybergraphics.i < prev    next >
Text File  |  2001-01-13  |  5KB  |  194 lines

  1. ;*
  2. ;*    $VER: cybergraphics.i 41.18 (21.02.1998)
  3. ;*
  4. ;*    include file for cybergraphics.library
  5. ;*
  6. ;* normally is here a copyright.
  7. ;* I set it off because I had to make some modification:
  8. ;* it seems that this ".i" were never tested!
  9. ;* there was some ( not closed and some hexa value were "0x".
  10. ;*
  11. ;*      All Rights reserved.
  12. ;*
  13. ;*
  14.  
  15.             IFND    CYBERGRAPHX_CYBERGRAPHICS_I
  16. CYBERGRAPHX_CYBERGRAPHICS_I    SET    1
  17.  
  18.  
  19.             INCLUDE "exec/nodes.i"
  20.             INCLUDE "utility/tagitem.i"
  21.             INCLUDE    "graphics/displayinfo.i"
  22.  
  23. ;
  24. ; Definition of CyberModeNode (Returned in AllocModeList)
  25. ;
  26.             STRUCTURE    CyberModeNode,0
  27.             STRUCT    cmn_Node,LN_SIZE
  28.             STRUCT    cmn_ModeText,DISPLAYNAMELEN    ; name for this mode
  29.             ULONG    cmn_DisplayID            ; display id associated with the node
  30.             UWORD    cmn_Width            ; visible width
  31.             UWORD    cmn_Height            ; visible height
  32.             UWORD    cmn_Depth            ; display depth
  33.             APTR    cmn_DisplayTagList        ; taglist with extended ModeID information
  34.             LABEL    cmn_SIZEOF
  35.  
  36.         
  37. ;
  38. ; Parameters for GetCyberMapAttr()
  39. ;
  40.  
  41. CYBRMATTR_XMOD        EQU    ($80000001)    ; function returns BytesPerRow if its called with this parameter
  42. CYBRMATTR_BPPIX        EQU    ($80000002)    ; BytesPerPixel shall be returned
  43. CYBRMATTR_DISPADR    EQU    ($80000003)    ; do not use this ! private tag
  44. CYBRMATTR_PIXFMT    EQU    ($80000004)    ; the pixel format is returned
  45. CYBRMATTR_WIDTH        EQU    ($80000005)    ; returns width in pixels
  46. CYBRMATTR_HEIGHT    EQU    ($80000006)    ; returns height in lines
  47. CYBRMATTR_DEPTH        EQU    ($80000007)    ; returns bits per pixel
  48. CYBRMATTR_ISCYBERGFX    EQU    ($80000008)    ; returns if supplied bitmap is a cybergfx one
  49. CYBRMATTR_ISLINEARMEM    EQU    ($80000009)    ; returns -1 if supplied bitmap is linear accessable
  50.  
  51. ;
  52. ; Parameters for GetCyberIDAttr()
  53. ;
  54.  
  55. CYBRIDATTR_PIXFMT    EQU    ($80000001)    ; the pixel format is returned
  56. CYBRIDATTR_WIDTH    EQU    ($80000002)    ; returns visible width in pixels
  57. CYBRIDATTR_HEIGHT    EQU    ($80000003)    ; returns visible height in lines
  58. CYBRIDATTR_DEPTH    EQU    ($80000004)    ; returns bits per pixel
  59. CYBRIDATTR_BPPIX    EQU    ($80000005)    ; BytesPerPixel shall be returned
  60.  
  61. ;
  62. ; Tags for CModeRequestTagList()
  63. ;
  64.  
  65. CYBRMREQ_TB        EQU    (TAG_USER+$40000)
  66. ;
  67. ; FilterTags
  68. ;
  69. CYBRMREQ_MinDepth    EQU    (CYBRMREQ_TB+0)        ; Minimum depth for displayed screenmode
  70. CYBRMREQ_MaxDepth    EQU    (CYBRMREQ_TB+1)        ; Maximum depth  "       "        "
  71. CYBRMREQ_MinWidth    EQU    (CYBRMREQ_TB+2)        ; Minumum width  "       "        "
  72. CYBRMREQ_MaxWidth    EQU    (CYBRMREQ_TB+3)        ; Maximum width  "       "        "
  73. CYBRMREQ_MinHeight    EQU    (CYBRMREQ_TB+4)        ; Minumum height "       "        "
  74. CYBRMREQ_MaxHeight    EQU    (CYBRMREQ_TB+5)        ; Minumum height "       "        "
  75. CYBRMREQ_CModelArray    EQU    (CYBRMREQ_TB+6)        ; Filters certain color models
  76.  
  77. CYBRMREQ_WinTitle    EQU    (CYBRMREQ_TB+20)
  78. CYBRMREQ_OKText        EQU    (CYBRMREQ_TB+21)
  79. CYBRMREQ_CancelText    EQU    (CYBRMREQ_TB+22)
  80.  
  81. CYBRMREQ_Screen        EQU    (CYBRMREQ_TB+30)    ; Screen you wish the Requester to opened on
  82.  
  83. ;
  84. ; Tags for BestCyberModeID()
  85. ;
  86.  
  87. CYBRBIDTG_TB        EQU    (TAG_USER+$50000)
  88. ;
  89. ; FilterTags
  90. ;
  91. CYBRBIDTG_Depth        EQU    (CYBRBIDTG_TB+0)
  92. CYBRBIDTG_NominalWidth    EQU    (CYBRBIDTG_TB+1)
  93. CYBRBIDTG_NominalHeight    EQU    (CYBRBIDTG_TB+2)
  94. CYBRBIDTG_MonitorID    EQU    (CYBRBIDTG_TB+3)
  95. CYBRBIDTG_BoardName    EQU    (CYBRBIDTG_TB+5)
  96.  
  97.  
  98. PIXFMT_LUT8        EQU    (0)
  99. PIXFMT_RGB15        EQU    (1)
  100. PIXFMT_BGR15        EQU    (2)
  101. PIXFMT_RGB15PC        EQU    (3)
  102. PIXFMT_BGR15PC        EQU    (4)
  103. PIXFMT_RGB16        EQU    (5)
  104. PIXFMT_BGR16        EQU    (6)
  105. PIXFMT_RGB16PC        EQU    (7)
  106. PIXFMT_BGR16PC        EQU    (8)
  107. PIXFMT_RGB24        EQU    (9)
  108. PIXFMT_BGR24        EQU    (10)
  109. PIXFMT_ARGB32        EQU    (11)
  110. PIXFMT_BGRA32        EQU    (12)
  111. PIXFMT_RGBA32        EQU    (13)
  112.  
  113. PIXFMT_CNT        EQU    (14)
  114.  
  115. ;
  116. ; SrcRectangle formats defines for xxxPixelArray() calls
  117. ;
  118.  
  119. RECTFMT_RGB        EQU    (0)
  120. RECTFMT_RGBA        EQU    (1)
  121. RECTFMT_ARGB        EQU    (2)
  122. RECTFMT_LUT8        EQU    (3)
  123. RECTFMT_GREY8        EQU    (4)
  124.  
  125.  
  126. ;
  127. ; Parameters for CVideoCtrlTagList()
  128. ;
  129.  
  130. SETVC_DPMSLevel        EQU    ($88002001)
  131.  
  132. DPMS_ON            EQU    (0)    ; Full operation
  133. DPMS_STANDBY        EQU    (1)    ; Optional state of minimal power reduction
  134. DPMS_SUSPEND        EQU    (2)    ; Significant reduction of power consumption
  135. DPMS_OFF        EQU    (3)    ; Lowest level of power consumption
  136.  
  137.  
  138. ;
  139. ; Parameters for LockBitMapTagList()
  140. ;
  141.  
  142. LBMI_WIDTH        EQU    ($84001001)
  143. LBMI_HEIGHT        EQU    ($84001002)
  144. LBMI_DEPTH        EQU    ($84001003)
  145. LBMI_PIXFMT        EQU    ($84001004)
  146. LBMI_BYTESPERPIX    EQU    ($84001005)
  147. LBMI_BYTESPERROW    EQU    ($84001006)
  148. LBMI_BASEADDRESS    EQU    ($84001007)
  149.  
  150.  
  151. ;
  152. ; Parameters for UnLockBitMapTagList()
  153. ;
  154.  
  155. UBMI_UPDATERECTS    EQU    ($85001001)
  156. UBMI_REALLYUNLOCK    EQU    ($85001002)
  157.  
  158.  
  159. ;                              
  160. ; Message passed to the DoCDrawMethodTagList()
  161. ; hook function
  162. ;                              
  163.  
  164.     STRUCTURE    CDrawMsg,0
  165.             APTR    cdm_MemPtr
  166.             ULONG   cdm_offx
  167.             ULONG   cdm_offy
  168.             ULONG   cdm_xsize
  169.             ULONG   cdm_ysize
  170.             UWORD   cdm_BytesPerRow
  171.             UWORD   cdm_BytesPerPix
  172.             UWORD   cdm_ColorModel
  173.         LABEL    cdm_SIZEOF
  174.  
  175. ;
  176. ; Colour Table source formats for WriteLUTPixelArray()
  177. ;
  178.  
  179. CTABFMT_XRGB8    EQU    (0)    ; ULONG [] table
  180.                 ; X,R,G,B order, 8-bits-per-gun
  181.  
  182.  
  183.  
  184. ;
  185. ; graphics.library/AllocBitmap() extended flags
  186. ;
  187.  
  188.  
  189. BMB_SPECIALFMT    EQU    (7)
  190. BMF_SPECIALFMT    EQU    ($80)
  191.  
  192.             ENDC
  193.  
  194.